package com.skypan.myapplication.http;

import com.google.gson.Gson;
import com.skypan.myapplication.bean.WriteListR;
import com.zhy.http.okhttp.callback.Callback;

import java.io.IOException;

import okhttp3.Response;

public abstract class WriteListCallback extends Callback<WriteListR>
{
    @Override
    public WriteListR parseNetworkResponse(Response response, int id) throws IOException
    {
        String string = response.body().string();
        WriteListR product = new Gson().fromJson(string, WriteListR.class);
        return product;
    }
}